package com.cleaningcloud.cld.domain.vo;

import com.cleaningcloud.cld.domain.CldSettlement;
import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.security.handler.DictHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class CldSettlementVo extends CldSettlement {

    // 项目区域
    @Excel(name = "项目区域", sort = 2, args = {"cld_project_region"}, handler = DictHandler.class)
    private String projectRegion;
    // 项目名称
    @Excel(name = "项目名称", sort = 3)
    private String projectName;
    // 应收款金额(总)
    @Excel(name = "应收金额", sort = 5)
    private BigDecimal amountDue;
    // 开票金额(总)
    @Excel(name = "开票金额", sort = 6)
    private BigDecimal actualAmount;
    // 坏账
    private BigDecimal baddebtMoney;
    // 服务日期
    @Excel(name = "服务日期", width = 30, dateFormat = "yyyy-MM-dd", sort = 1)
    private Date serviceDate;
    // 开票状态
    @Excel(name = "开票状态", sort = 4, readConverterExp = "0=未开具,1=已开具")
    private Long invoiceStatus;

    // 项目合同状态
    private Long contractStatus;


    // 应收款金额
    private BigDecimal answerInvoiceAmount;
    // 开票金额
    private BigDecimal realInvoiceAmount;
    // 相差天数
    private Long diffDay;
}
